﻿using EMS.system.Entityies.WarehouseManagement.SupplierReturnModel;
using EMS.system.IEntityAppService.MasterData.SupplierManagementIService.SupplierManagementDto;
using EMS.system.IEntityAppService.MasterData.SupplierReturnService.SupplierReturnDto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace EMS.system.IEntityAppService.MasterData.SupplierReturnService
{
    public interface ISupplierReturnAppService:IApplicationService
    {
        /// <summary>
        /// 获取供应商退货分页 查询 显示
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="returnName"></param>
        /// <returns></returns>
        Task<PagedResult> GetSupplierReturnList(int pageIndex, int pageSize, string? returnCode, string? returnName);
        /// <summary>
        /// 获取供应商管理列表
        /// </summary>
        /// <returns></returns>
        Task<List<SelectSupplierManagementDto>> GetSupplierManagement();
        ///// <summary>
        ///// redis集群
        ///// </summary>
        ///// <returns></returns>
        //Task<List<SelectSupplierManagementDto>> GetSupplierManagementListRedis();
        /// <summary>
        /// 添加供应商退货
        /// </summary>
        /// <param name="supplierReturnDTO"></param>
        /// <returns></returns>
        Task<int> CreateSupplierReturn(SupplierReturnDTO supplierReturnDTO);
        /// <summary>
        /// 删除供应商退货
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> DeleteSupplierReturn(string ids);
        /// <summary>
        /// 获取供应商退货主键id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SupplierReturnDTO> GetSupplierReturnById(int id);
        /// <summary>
        /// 更新供应商退货
        /// </summary>
        /// <param name="supplierReturnDTO"></param>
        /// <returns></returns>
        Task<int> UpdateSupplierReturn(SupplierReturnDTO supplierReturnDTO);
    }
}
